﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace SplashFormV2
{
    static public class ControlHelper
    {
        static public void UIThreadSafe(Control ctrl, MethodInvoker code)
        {
            if (ctrl.InvokeRequired)
            {
                ctrl.Invoke(code);
                return;
            }
            code.Invoke();
        }
    }
}
